// 画线程序 与 可变长度参数表

#include <iostream>
using namespace std;

void DrawLines(char = '%', int = 25, int = 1);

int main() {
    cout << "画线程序\n";

    cout << "默认情况下, 在1行画25个%\n";
    DrawLines();

    cout << "改为在1行中画30个@\n";
    DrawLines('@', 30);

    cout << "现在画3行,每行15个#\n";
    DrawLines('#', 15, 3);

    cout << "最后在1行中画6个%\n";
    DrawLines('%', 6);
}

void DrawLines(char symbol, int symbol_num, int lines_num) {
    for (int i = 0; i < lines_num; i++) {
        for (int j = 0; j < symbol_num; j++) {
            cout << symbol;
        }
        cout << "\n";
    }
    cout << "\n";
}